package com.xinhua.service.impl;

import com.xinhua.domain.Parent;
import com.xinhua.mapper.ParentMapper;
import com.xinhua.service.CityService;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;

@Service
public class CityServiceimpl implements CityService {

    @Resource
    private ParentMapper parentMapper;

    @Override
    public Parent getparent(Integer id) {
        Parent parent= parentMapper.getTeacherPro(id);
        return parent;
    }
}

